Crate puffin

source ·
Expand description

Usage:

fn main() {
    puffin::set_scopes_on(true); // you may want to control this with a flag

    // game loop
    loop {
        puffin::GlobalProfiler::lock().new_frame();

        {
            puffin::profile_scope!("slow_code");
            slow_code();
        }

    }
}

Macros

Structs

Enums

  • Errors that can happen when parsing a Stream of profile data.

Functions

Type Definitions